<?php if (!defined('THINK_PATH')) exit();?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">

<!-- Viewport Metatag -->
<meta name="viewport" content="width=device-width,initial-scale=1.0">

<!-- Plugin Stylesheets first to ease overrides -->
<link rel="stylesheet" type="text/css" href="/Public/admin/plugins/colorpicker/colorpicker.css" media="screen">
<link rel="stylesheet" type="text/css" href="/Public/admin/custom-plugins/wizard/wizard.css" media="screen">

<!-- Required Stylesheets -->
<link rel="stylesheet" type="text/css" href="/Public/admin/bootstrap/css/bootstrap.min.css" media="screen">
<link rel="stylesheet" type="text/css" href="/Public/admin/css/fonts/ptsans/stylesheet.css" media="screen">
<link rel="stylesheet" type="text/css" href="/Public/admin/css/fonts/icomoon/style.css" media="screen">

<link rel="stylesheet" type="text/css" href="/Public/admin/css/mws-style.css" media="screen">
<link rel="stylesheet" type="text/css" href="/Public/admin/css/icons/icol16.css" media="screen">
<link rel="stylesheet" type="text/css" href="/Public/admin/css/icons/icol32.css" media="screen">

<!-- Demo Stylesheet -->
<link rel="stylesheet" type="text/css" href="/Public/admin/css/demo.css" media="screen">

<!-- jQuery-UI Stylesheet -->
<link rel="stylesheet" type="text/css" href="/Public/admin/jui/css/jquery.ui.all.css" media="screen">
<link rel="stylesheet" type="text/css" href="/Public/admin/jui/jquery-ui.custom.css" media="screen">

<!-- Theme Stylesheet -->
<link rel="stylesheet" type="text/css" href="/Public/admin/css/mws-theme.css" media="screen">
<link rel="stylesheet" type="text/css" href="/Public/admin/css/themer.css" media="screen">
<link rel="stylesheet" type="text/css" href="/Public/admin/css/login.css" media="screen">
<script src="/Public/admin/js/libs/jquery-1.8.3.min.js"></script>

<link rel="stylesheet" type="text/css" href="/Public/admin/css/xcConfirm.css"/>
<script src="/Public/admin/js/jquery-1.9.1.js" type="text/javascript" charset="utf-8"></script>
<script src="/Public/admin/js/xcConfirm.js" type="text/javascript" charset="utf-8"></script>
<style type="text/css">
    .sgBtn{width: 135px; height: 35px; line-height: 35px; margin-left: 10px; margin-top: 10px; text-align: center; background-color: #0095D9; color: #FFFFFF; float: left; border-radius: 5px;}
</style>

	<style>
		.lh {
			background-image: url("/Public/img1/lh.gif");
			background-position: 55px 90px;
			background-repeat: no-repeat;
		}
		.hh {
		    background-image: url("/Public/img1/lh.gif");
		    background-position: -5px 90px;
		    background-repeat: no-repeat;
		}

		.rh {
		    background-image: url("/Public/img1/rh.gif");
		    background-position: -180px 90px;
		    background-repeat: no-repeat;
		}

		.hh2 {
		    background-image: url("/Public/img1/ch1.gif");
		    background-position: center 90px;
		    background-repeat: no-repeat;
		}
		.Nods {
			font-size: 12px;
			height: 110px;
			text-align: center;
			vertical-align: top;
			width: 104px;
		}
		.Item{
			background-repeat: no-repeat;
			height:100px;
		}
	</style>



<title>后台管理</title>

</head>

<body>


    
    <!-- Header -->
<div id="mws-header" class="clearfix" style='background:url(/Public/admin/images/head.png) no-repeat ;min-width:780px;background-size:cover;'>
    
        <!-- Logo Container -->
        <div id="mws-logo-container">
        
            <!-- Logo Wrapper, images put within this wrapper will always be vertically centered -->
           <div id="mws-logo-wrap">
                <a style='font-size:18px;color:black;'></a>
            </div>
       
        </div>
        
        <!-- User Tools (notifications, logout, profile, change password) -->
        <div id="mws-user-tools" class="clearfix">
        <div id="mws-user-message" class="mws-dropdown-menu">
            <a href="#" data-toggle="dropdown" style='font-size:20px;margin-right:10px' ><i class="icol32-arrow-rotate-clockwise" onclick='return new_redirect()' title='刷新'></i></a>
         
        </div>
         <div id="mws-user-message" class="mws-dropdown-menu">
            <a href="/index.php/home/login"  style='font-size:20px;margin-right:10px' target="_blank"><i class="icol32-drive-user" title='前台'></i></a>
        </div>
            <!-- Notifications -->
            <div id="mws-user-notif" class="mws-dropdown-menu">
               
               
            </div>
            
            <!-- Messages -->
            <div id="mws-user-message" class="mws-dropdown-menu">
               
                
                <!-- Messages dropdown -->
                <div class="mws-dropdown-box">
                    <div class="mws-dropdown-content">
      
                        <div class="mws-dropdown-viewall">
                            <a href="#">View All Messages</a>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- User Information and functions section -->
            <div id="mws-user-info" class="mws-inset">
            
                <!-- User Photo -->
                <div id="mws-user-photo" >
                    <img src="/Public/home/images/photo_1.jpg" alt="User Photo" >
                </div>
                
                <!-- Username and Functions -->
                <div id="mws-user-functions">
                    <div id="mws-username" style='color:#fff;font-size:18px;margin-right:30px;margin-left:15px'>
                        Hello, <?php echo $_SESSION['admin']['user_name']?>
                    </div>
                    <ul>                        
                        <li><a href="/index.php/Admin/login/loginout" style='font-size:13px;margin-left:15px;margin-top:23px'> 退出登录</a></li>
                    </ul>
                </div>
            </div>
           
        </div>
    </div>
    <script>
        function new_redirect(){ 
            window.location.reload();
        };

    </script>
    <!-- Start Main Wrapper -->
    <div id="mws-wrapper">
    
        <!-- Necessary markup,do not remove -->
        <div id="mws-sidebar-stitch" ></div>
        <div id="mws-sidebar-bg"style='background:#ECECEC;'></div>
        
        <!-- Sidebar Wrapper -->
        <div id="mws-sidebar" style='background:#ECECEC;'>
        
            <!-- Hidden Nav Collapse Button -->
            <div id="mws-nav-collapse">
                <span></span>
                <span></span>
                <span></span>
            </div>
            

            
            <!-- Main Navigation -->
            <div id="mws-navigation">
                <ul>
                <?php if(in_array('article',$_SESSION['node_con'])): ?><li>
                        <a href="/index.php/Admin/article/index" style='color:black'><span style='font-size:18px'><i class="icol32-page-white-paint"></i></span>&nbsp; &nbsp;信息管理</a>
                        <ul class="closed">
                            <li><a href="/index.php/Admin/article/index">系统公告列表</a></li>
                            <li><a href="/index.php/Admin/article/add">系统公告添加</a></li>
                        </ul>
                    </li><?php endif; ?>
                <?php if(in_array('role',$_SESSION['node_con'])): ?><li>
                        <a href="/index.php/Admin/role/index" style='color:black'><span style='font-size:18px'><i class="icol32-lock-break"></i></span>   &nbsp;&nbsp;权限管理</a>
                        <ul class="closed">
                            <li><a href="/index.php/Admin/role/index">管理员列表</a></li>
                            <li><a href="/index.php/Admin/role/admin_log">管理员日志</a></li>
                            <li><a href="/index.php/Admin/role/index_role">角色管理</a></li>
                        </ul>
                    </li><?php endif; ?>
                <?php if(in_array('system',$_SESSION['node_con'])): ?><li>
                        <a href="/index.php/Admin/system/set" style='color:black'><span style='font-size:18px'><i class="icol32-car"></i></span>   &nbsp;&nbsp;系统设置</a>
                        <ul class="closed">
                            <li><a href="/index.php/Admin/system/set">系统设置</a></li>
                            <li><a href="/index.php/Admin/system/param">参数管理</a></li>
                        </ul>
                    </li><?php endif; ?>
                <?php if(in_array('first',$_SESSION['node_con'])): ?><li>
                        <a href="/index.php/Admin/first/index" style='color:black'><span style='font-size:18px'><i class="icol32-directory-listing"></i></span>   &nbsp;&nbsp;首页管理</a>
                        <ul class="closed">
                            <li><a href="/index.php/Admin/first/index">广告管理</a></li>
                            <li><a href="/index.php/Admin/first/company">公司管理</a></li>
                            
                        </ul>
                    </li><?php endif; ?>
                <?php if(in_array('caiwu',$_SESSION['node_con'])): ?><li>
                        <a href="/index.php/Admin/caiwu/chongzhi" style='color:black'><span style='font-size:18px'><i class="icol32-set-security-question"></i></span> &nbsp; &nbsp;财务管理</a>
                        <ul class="closed">
                            <li><a href="/index.php/Admin/caiwu/chongzhi">充值管理</a></li>
                            <li><a href="/index.php/Admin/caiwu/zijin">资金管理</a></li>
                            <li><a href="/index.php/Admin/caiwu/shangjia">上市股权上架</a></li>
                        </ul>
                    </li><?php endif; ?>
                <?php if(in_array('user',$_SESSION['node_con'])): ?><li>
                        <a href="/index.php/Admin/user/pprg" style='color:black'><span style='font-size:18px'><i class="icol32-group"></i></span>   &nbsp;&nbsp;会员管理</a>
                        <ul class="closed">
                            <?php if(in_array('pprg',$_SESSION['node_act'])): ?><li><a href="/index.php/Admin/user/pprg">匹配认购积分</a></li><?php endif; ?>
                             <?php if(in_array('ppejf',$_SESSION['node_act'])): ?><li><a href="/index.php/Admin/user/ppejf">匹配E积分</a></li><?php endif; ?>
                             <?php if(in_array('add',$_SESSION['node_act'])): ?><li><a href="/index.php/Admin/user/add">推荐关系</a></li><?php endif; ?>
                             <?php if(in_array('organization',$_SESSION['node_act'])): ?><li><a href="/index.php/Admin/user/organization?user_name=001">组织结构</a></li><?php endif; ?>
                             <?php if(in_array('index',$_SESSION['node_act'])): ?><li><a href="/index.php/Admin/user/index">会员列表</a></li><?php endif; ?>
                            <?php if(in_array('jibie',$_SESSION['node_act'])): ?><li><a href="/index.php/Admin/user/jibie">会员级别</a></li><?php endif; ?>
                        </ul>
                    </li><?php endif; ?>
                <?php if(in_array('check',$_SESSION['node_con'])): ?><li>
                        <a href="/index.php/Admin/check/chaifen" style='color:black'><span style='font-size:18px'><i class="icol32-plugin-add"></i></span> &nbsp;&nbsp;拆分与审核</a>
                        <ul class="closed">
                            <li><a href="/index.php/Admin/check/chaifen">拆分</a></li>
                            <li><a href="/index.php/Admin/check/shenhe">审核</a></li>
                        </ul>
                    </li><?php endif; ?>
                </ul>
            </div>         
        </div>
        
        <!-- Main Container Start -->
        <div id="mws-container" class="clearfix">
            <div class="container" class="clearfix">
                <?php if($_session['success'] == true): ?><div class="mws-form-message success">
                    <ul>
                        <?php echo ($_session['success']); ?>
                    </ul>
                </div>
                <?php elseif($_session['error'] == true): ?>
                <div class="mws-form-message error">
                    <ul>
                        <?php echo ($_session['error']); ?>
                    </ul>
                </div><?php endif; ?>
                    
	<body class="main">
		<div class="mainbody">
			<table class="searchBar" cellspacing="0" cellpadding="0" border="0" width="100%">
				<tbody>
					<tr>
						<td align="center">
							<form action="/admin/user/organization" method="post" name="theForm">
								跳转用户:<input name="user_name" type="text">
										<input value="跳转" type="submit">
							</form>
						</td>
					</tr>
				</tbody>
			</table>
		  	<table class="searchBar" cellspacing="0" cellpadding="0" border="0" width="100%">
			    <tbody>
			    	<tr>
			      		<td>
			      			<table style="margin-top:20px;" cellspacing="1" cellpadding="1" bgcolor="#c3d9ff" align="center" border="0" width="98%">
			          			<tbody>
			          				<tr>
			            				<td bgcolor="#ffffff">
			            					<div style=" width:980px; margin-top:20px; margin-left:5px; margin-right:5px; margin-bottom:20px;">
			                					<table class="Network" cellspacing="0" cellpadding="0" bordercolor="#666666" align="center" border="0">
													<tbody>
														<tr>
															<td class="Nods">&nbsp;</td>
															<td class="Nods">&nbsp;</td>
															<td class="Nods lh">&nbsp;</td>
															<td class="Nods hh">&nbsp;</td>
															<td class="Nods hh2" valign="top">
																<div class="Item" style="background-image:url(/Public/img/n1.jpg);">
																	<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
																    	<tbody>
																    		<tr>
																    			<?php if($level1["user_name"] != 001): ?><td style="text-align:center;" height="8">
																		    		<a href="/admin/user/organization?user_name=<?php echo ($tree); ?>"><img src="/Public/img1/up.gif"></a>
																		    	</td>
																		    	<?php else: ?>
																		    	<td style="text-align:center;" height="8"></td><?php endif; ?>
																		    </tr>
																		    <tr>
																		     	<td style="text-align:center;" height="20">
																		     		<a href="/admin/user/organization?user_name=<?php echo ($level1["user_name"]); ?>"><?php echo ($level1["user_name"]); ?>(<?php if($level1["name"] == true): echo ($level1["name"]); endif; ?>$<?php echo ($level1["tree_num"]); ?>)
																		     		</a>
																		     	</td>
																		    </tr>
																		    <tr>
																		    	<td style="text-align:center;" height="20"><?php echo ($level1["true_name"]); ?></td>
																		    </tr>
																		    <tr>
																		      	<td style="text-align:center;" height="20"><table cellspacing="0" cellpadding="0" align="center" border="0" width="85">
																		        <tbody>
																			        <tr>
																			          	<td align="right" width="40">$<?php echo ($level1["left_num"]); ?></td>
																			          	<td width="5">:</td>
																			          	<td align="left" width="40">$<?php echo ($level1["right_num"]); ?></td>
																			        </tr>
																		      	</tbody></table></td>
																		    </tr>
																		    <tr>
																		      	<td style="text-align:center;" height="20">
																			      	<table cellspacing="0" cellpadding="0" align="center" border="0" width="85">
																				        <tbody>
																					        <tr>
																						        <td align="right" width="40">$<?php echo ($level1["left_leave_amount"]); ?></td>
																						        <td width="5">:</td>
																						        <td align="left" width="40">$<?php echo ($level1["right_leave_amount"]); ?></td>
																					        </tr>
																				      	</tbody>
																				    </table>
																			    </td>
																		    </tr>
																		</tbody>
																	</table>
																</div>
															</td>
															<td class="Nods hh">&nbsp;</td>
															<td class="Nods rh">&nbsp;</td>
														</tr>
														<tr>
															<td class="Nods">&nbsp;</td>
															<td class="Nods lh">&nbsp;</td>
															<?php if($l2 == true): ?><td class="Nods hh2" valign="top">
																<div class="Item" style="background-image:url(/Public/img/n2.jpg);">
															  		<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
															      		<tbody>
															      			<tr>
															        			<td style="text-align:center;" height="8"></td>
															      			</tr>
															    			<tr>
															        			<td style="text-align:center;" height="20">
															        				<a href="/admin/user/organization?user_name=<?php echo ($l2["user_name"]); ?>"><?php echo ($l2["user_name"]); ?>(<?php echo ($l2["name"]); ?>$<?php echo ($l2["tree_num"]); ?>)</a>
															        			</td>
															       			</tr>
															      			<tr>
															        			<td style="text-align:center;" height="20"><?php echo ($l2["true_name"]); ?></td>
															    			</tr>
															      			<tr>
															        			<td style="text-align:center;" height="20">
															        				<table cellspacing="0" cellpadding="0" align="center" border="0" width="85">
															        					<tbody>
																        					<tr>
																	        					<td align="right" width="40">$<?php echo ($l2["left_num"]); ?></td>
																	        					<td width="5">:</td>
																	        					<td align="left" width="40">$<?php echo ($l2["right_num"]); ?></td>
																        					</tr>
															        					</tbody>
															        				</table>
															        			</td>
															      			</tr>
																	      	<tr>
																	        	<td style="text-align:center;" height="20">
																	        		<table cellspacing="0" cellpadding="0" align="center" border="0" width="85">
																	        			<tbody>
																	        				<tr>
																						        <td align="right" width="40">$<?php echo ($l2["left_leave_amount"]); ?></td>
																						        <td width="5">:</td>
																						        <td align="left" width="40">$<?php echo ($l2["right_leave_amount"]); ?></td>
																					        </tr>
																				        </tbody>
																			        </table>
																	        	</td>
																	      	</tr>
																	  	</tbody>
																	</table>
																</div>
															</td>
															<?php else: ?>
															<td class="Nods hh2" valign="top">
																<div class="Item" style="background-image:url(/Public/img/n3.jpg);">
															  		<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
															      		<tbody>
															      			<tr>
															        			<td style="text-align:center;" height="20"><br><br>待注册</td>
															      			</tr>
															  			</tbody>
															  		</table>
																</div>
															</td><?php endif; ?>
															<td class="Nods rh">&nbsp;</td>
															<td class="Nods">&nbsp;</td>
															<td class="Nods lh">&nbsp;</td>
															<?php if($r2 == true): ?><td class="Nods hh2" valign="top">
															
																<div class="Item" style="background-image:url(/Public/img/n2.jpg);">
															  		<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
															      		<tbody>
															      			<tr>
															        			<td style="text-align:center;" height="8"></td>
															      			</tr>
															      			<tr>
																        		<td style="text-align:center;" height="20">
																        			<a href="/admin/user/organization?user_name=<?php echo ($r2["user_name"]); ?>"><?php echo ($r2["user_name"]); ?>(<?php echo ($r2["name"]); ?>$<?php echo ($r2["tree_num"]); ?>)</a>
																        		</td>
															       			</tr>
															      			<tr>
															        			<td style="text-align:center;" height="20"><?php echo ($r2["true_name"]); ?></td>
															      			</tr>
															      			<tr>
																        		<td style="text-align:center;" height="20">
																        			<table cellspacing="0" cellpadding="0" align="center" border="0" width="85">
																        				<tbody>
																        					<tr>
																        						<td align="right" width="40">$<?php echo ($r2["left_num"]); ?></td>
																        						<td width="5">:</td>
																        						<td align="left" width="40">$<?php echo ($r2["right_num"]); ?>
																        						</td>
																        					</tr>
																        				</tbody>
																        			</table>
																        		</td>
															      			</tr>
															      			<tr>
																        		<td style="text-align:center;" height="20">
																        			<table cellspacing="0" cellpadding="0" align="center" border="0" width="85">
																        				<tbody>
																        					<tr>
																        						<td align="right" width="40">$<?php echo ($r2["left_leave_amount"]); ?></td>
																        						<td width="5">:</td>
																        						<td align="left" width="40">$<?php echo ($r2["right_leave_amount"]); ?></td>
																        					</tr>
																        				</tbody>
																        			</table>
																        		</td>
															      			</tr>
															  			</tbody>
															  		</table>
																</div>
															</td>
															<?php elseif($l2 == false): ?>
															<td class="Nods hh2" valign="top">
																<div class="Item" style="background-image:url(/Public/img/n3.jpg);">
															  		<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
															      		<tbody>
															      			<tr>
															        			<td style="text-align:center;" height="8"><br><br><font color="#c2c2c2">未激活<font></font></font></td>
															      			</tr>
															  			</tbody>
															  		</table>
																</div>
															</td>
															<?php else: ?>
															<td class="Nods hh2" valign="top">
																<div class="Item" style="background-image:url(/Public/img/n3.jpg);">
															  		<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
															      		<tbody>
															      			<tr>
															        			<td style="text-align:center;" height="20"><br><br>待注册</td>
															      			</tr>
															  			</tbody>
															  		</table>
																</div>
															</td><?php endif; ?>
															<td class="Nods rh">&nbsp;</td>															
														</tr>
														<tr>
															<td class="Nods " valign="top">
															</td>
															<?php if($l21 == true): ?><td class="Nods " valign="top">
																<div class="Item" style="background-image:url(/Public/img/n3.jpg);">
															  		<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
															      		<tbody>
															      			<tr>
																		        <td style="text-align:center;" height="8"></td>
																		      	</tr>
																		      	<tr>
																			        <td style="text-align:center;" height="20">
																			        	<a href="/admin/user/organization?user_name=<?php echo ($l21["user_name"]); ?>"><?php echo ($l21["user_name"]); ?>(<?php echo ($l21["name"]); ?> $<?php echo ($l21["tree_num"]); ?>)</a>
																			        </td>
																		       	</tr>
																		      	<tr>
																		        	<td style="text-align:center;" height="20"><?php echo ($l21["true_name"]); ?></td>
																		      	</tr>
																		      	<tr>
																		        	<td style="text-align:center;" height="20">
																		        		<table cellspacing="0" cellpadding="0" align="center" border="0" width="85">
																		        			<tbody>
																		        				<tr>
																		        					<td align="right" width="40">$<?php echo ($l21["left_num"]); ?></td>
																		        					<td width="5">:</td>
																		        					<td align="left" width="40">$<?php echo ($l21["right_num"]); ?></td>
																		        				</tr>
																		        			</tbody>
																		        		</table>
																		        	</td>
																		      	</tr>
																		      	<tr>
																		        <td style="text-align:center;" height="20">
																		        	<table cellspacing="0" cellpadding="0" align="center" border="0" width="85">
																		        		<tbody>
																		        			<tr>
																		        				<td align="right" width="40">$<?php echo ($l21["left_leave_amount"]); ?></td>
																		        				<td width="5">:</td>
																		        				<td align="left" width="40">$<?php echo ($l21["right_leave_amount"]); ?></td>
																		        			</tr>
																		        		</tbody>
																		        	</table>
																		        </td>
																		    </tr>
																		</tbody>
																	</table>
																</div>
															</td>
															<?php elseif(empty($l2)): ?>
															<td class="Nods" valign="top">
																<div class="Item" style="background-image:url(/Public/img/n3.jpg);">
															  		<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
															      		<tbody>
															      			<tr>
															        			<td style="text-align:center;" height="8"><br><br><font color="#c2c2c2">未激活<font></font></font></td>
															      			</tr>
															  			</tbody>
															  		</table>
																</div>
															</td>
															<?php else: ?>
															<td class="Nods" valign="top">
																<div class="Item" style="background-image:url(/Public/img/n3.jpg);">
															  		<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
															      		<tbody>
															      			<tr>
															        			<td style="text-align:center;" height="20"><br><br>待注册</td>
															      			</tr>
															  			</tbody>
															  		</table>
																</div>
															</td><?php endif; ?>
															<td class="Nods">&nbsp;</td>
															<?php if($l22 == true): ?><td class="Nods" valign="top">
																<div class="Item" style="background-image:url(/Public/img/n3.jpg);">
																  	<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
																      	<tbody>
																      		<tr>
																        		<td style="text-align:center;" height="8"></td>
																      		</tr>
																      		<tr>
																        	<td style="text-align:center;" height="20">
																        		<a href="/admin/user/organization?user_name=<?php echo ($l22["user_name"]); ?>"><?php echo ($l22["user_name"]); ?>(<?php echo ($l22["name"]); ?> $<?php echo ($l22["tree_num"]); ?>)</a>
																        	</td>
																	       	</tr>
																	      	<tr>
																	        	<td style="text-align:center;" height="20"><?php echo ($l22["true_name"]); ?></td>
																	      	</tr>
																	      	<tr>
																	        	<td style="text-align:center;" height="20">
																	        		<table cellspacing="0" cellpadding="0" align="center" border="0" width="85">
																	        			<tbody>
																	        				<tr>
																	        					<td align="right" width="40">$<?php echo ($l22["left_num"]); ?></td>
																	        					<td width="5">:</td>
																	        					<td align="left" width="40">$<?php echo ($l22["right_num"]); ?></td>
																	        				</tr>
																	        			</tbody>
																	        		</table>
																	        	</td>
																	      	</tr>
																	      	<tr>
																	        	<td style="text-align:center;" height="20">
																	        		<table cellspacing="0" cellpadding="0" align="center" border="0" width="85">
																	        			<tbody>
																	        				<tr>
																	        					<td align="right" width="40">$<?php echo ($l22["left_leave_amount"]); ?></td>
																	        					<td width="5">:</td>
																	        					<td align="left" width="40">$<?php echo ($l22["right_leave_amount"]); ?></td>
																	        				</tr>
																	        			</tbody>
																	        		</table>
																	        	</td>
																	      	</tr>
																  		</tbody>
																  	</table>
																</div>
															</td>
															<?php elseif($l21 == false): ?>
															<td class="Nods" valign="top">
																<div class="Item" style="background-image:url(/Public/img/n3.jpg);">
															  		<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
															      		<tbody>
															      			<tr>
															        			<td style="text-align:center;" height="8"><br><br><font color="#c2c2c2">未激活<font></font></font></td>
															      			</tr>
															  			</tbody>
															  		</table>
																</div>
															</td>
															<?php else: ?>
															<td class="Nods" valign="top">
																<div class="Item" style="background-image:url(/Public/img/n3.jpg);">
															  		<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
															      		<tbody>
															      			<tr>
															        			<td style="text-align:center;" height="20"><br><br>待注册</td>
															      			</tr>
															  			</tbody>
															  		</table>
																</div>
															</td><?php endif; ?>
															<td class="Nods">&nbsp;</td>
															<?php if($r21 == true): ?><td class="Nods " valign="top">
																<div class="Item" style="background-image:url(/Public/img/n3.jpg);">
															  		<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
															      		<tbody>
															      			<tr>
																		        <td style="text-align:center;" height="8"></td>
																		      	</tr>
																		      	<tr>
																			        <td style="text-align:center;" height="20">
																			        	<a href="/admin/user/organization?user_name=<?php echo ($r21["user_name"]); ?>"><?php echo ($r21["user_name"]); ?>(<?php echo ($r21["name"]); ?> $<?php echo ($r21["tree_num"]); ?>)</a>
																			        </td>
																		       	</tr>
																		      	<tr>
																		        	<td style="text-align:center;" height="20"><?php echo ($r21["true_name"]); ?></td>
																		      	</tr>
																		      	<tr>
																		        	<td style="text-align:center;" height="20">
																		        		<table cellspacing="0" cellpadding="0" align="center" border="0" width="85">
																		        			<tbody>
																		        				<tr>
																		        					<td align="right" width="40">$<?php echo ($r21["left_num"]); ?></td>
																		        					<td width="5">:</td>
																		        					<td align="left" width="40">$<?php echo ($r21["right_num"]); ?></td>
																		        				</tr>
																		        			</tbody>
																		        		</table>
																		        	</td>
																		      	</tr>
																		      	<tr>
																		        <td style="text-align:center;" height="20">
																		        	<table cellspacing="0" cellpadding="0" align="center" border="0" width="85">
																		        		<tbody>
																		        			<tr>
																		        				<td align="right" width="40">$<?php echo ($r21["left_leave_amount"]); ?></td>
																		        				<td width="5">:</td>
																		        				<td align="left" width="40">$<?php echo ($r21["right_leave_amount"]); ?></td>
																		        			</tr>
																		        		</tbody>
																		        	</table>
																		        </td>
																		    </tr>
																		</tbody>
																	</table>
																</div>
															</td>
															<?php elseif($r2 == false): ?>
															<td class="Nods" valign="top">
																<div class="Item" style="background-image:url(/Public/img/n3.jpg);">
															  		<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
															      		<tbody>
															      			<tr>
															        			<td style="text-align:center;" height="8"><br><br><font color="#c2c2c2">未激活<font></font></font></td>
															      			</tr>
															  			</tbody>
															  		</table>
																</div>
															</td>
															<?php else: ?>
															<td class="Nods" valign="top">
																<div class="Item" style="background-image:url(/Public/img/n3.jpg);">
															  		<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
															      		<tbody>
															      			<tr>
															        			<td style="text-align:center;" height="20"><br><br>待注册</td>
															      			</tr>
															  			</tbody>
															  		</table>
																</div>
															</td><?php endif; ?>
															<td class="Nods">&nbsp;</td>
															<?php if($r22 == true): ?><td class="Nods " valign="top">
																<div class="Item" style="background-image:url(/Public/img/n3.jpg);">
															  		<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
															      		<tbody>
															      			<tr>
																		        <td style="text-align:center;" height="8"></td>
																		      	</tr>
																		      	<tr>
																			        <td style="text-align:center;" height="20">
																			        	<a href="/admin/user/organization?user_name=<?php echo ($r22["user_name"]); ?>"><?php echo ($r22["user_name"]); ?>(<?php echo ($r22["name"]); ?> $<?php echo ($r22["tree_num"]); ?>)</a>
																			        </td>
																		       	</tr>
																		      	<tr>
																		        	<td style="text-align:center;" height="20"><?php echo ($r22["true_name"]); ?></td>
																		      	</tr>
																		      	<tr>
																		        	<td style="text-align:center;" height="20">
																		        		<table cellspacing="0" cellpadding="0" align="center" border="0" width="85">
																		        			<tbody>
																		        				<tr>
																		        					<td align="right" width="40">$<?php echo ($r22["left_num"]); ?></td>
																		        					<td width="5">:</td>
																		        					<td align="left" width="40">$<?php echo ($r22["right_num"]); ?></td>
																		        				</tr>
																		        			</tbody>
																		        		</table>
																		        	</td>
																		      	</tr>
																		      	<tr>
																		        <td style="text-align:center;" height="20">
																		        	<table cellspacing="0" cellpadding="0" align="center" border="0" width="85">
																		        		<tbody>
																		        			<tr>
																		        				<td align="right" width="40">$<?php echo ($r22["left_leave_amount"]); ?></td>
																		        				<td width="5">:</td>
																		        				<td align="left" width="40">$<?php echo ($r22["right_leave_amount"]); ?></td>
																		        			</tr>
																		        		</tbody>
																		        	</table>
																		        </td>
																		    </tr>
																		</tbody>
																	</table>
																</div>
															</td>
															<?php elseif(empty($r21)): ?>
															<td class="Nods" valign="top">
																<div class="Item" style="background-image:url(/Public/img/n3.jpg);">
															  		<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
															      		<tbody>
															      			<tr>
															        			<td style="text-align:center;" height="8"><br><br><font color="#c2c2c2">未激活<font></font></font></td>
															      			</tr>
															  			</tbody>
															  		</table>
																</div>
															</td>
															<?php else: ?>
															<td class="Nods" valign="top">
																<div class="Item" style="background-image:url(/Public/img/n3.jpg);">
															  		<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
															      		<tbody>
															      			<tr>
															        			<td style="text-align:center;" height="20"><br><br>待注册</td>
															      			</tr>
															  			</tbody>
															  		</table>
																</div>
															</td><?php endif; ?>
															














															<!-- <td class="Nods" valign="top">
																<div class="Item" style="background-image:url(/Public/img/n3.jpg);">
															  		<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
															      		<tbody>
															      			<tr>
															        			<td style="text-align:center;" height="20"><br><br>待注册</td>
															      			</tr>
															  			</tbody>
															  		</table>
																</div>
															</td>
															<td class="Nods">&nbsp;</td>
															<td class="Nods" valign="top">
																<div class="Item" style="background-image:url(/Public/img/n3.jpg);">
															  		<table cellspacing="0" cellpadding="0" align="center" border="0" width="100%">
															      		<tbody>
															      			<tr>
															        			<td style="text-align:center;" height="8"><br><br><font color="#c2c2c2">未激活<font></font></font></td>
															      			</tr>
															  			</tbody>
															  		</table>
																</div>
															</td> -->
														</tr>
													</tbody>
												</table>
			            					</div>
			            				</td>
			          				</tr>
			      				</tbody>
			      			</table>
			      		</td>
			    	</tr>
		  		</tbody>
	  		</table>
		</div>
	</body>

            </div>
        </div>
            <!-- Inner Container End -->

            
            
    </div>
        <!-- Main Container End -->
        
</div>

    <!-- JavaScript Plugins -->
    
    <script src="/Public/admin/js/libs/jquery.mousewheel.min.js"></script>
    <script src="/Public/admin/js/libs/jquery.placeholder.min.js"></script>
    <script src="/Public/admin/custom-plugins/fileinput.js"></script>
    
    <!-- jQuery-UI Dependent Scripts -->
    <script src="/Public/admin/jui/js/jquery-ui-1.9.2.min.js"></script>
    <script src="/Public/admin/jui/jquery-ui.custom.min.js"></script>
    <script src="/Public/admin/jui/js/jquery.ui.touch-punch.js"></script>

    <!-- Plugin Scripts -->
    <script src="/Public/admin/plugins/datatables/jquery.dataTables.min.js"></script>
    <!--[if lt IE 9]>
    <script src="js/libs/excanvas.min.js"></script>
    <![endif]-->
     <script src="/Public/admin/plugins/flot/jquery.flot.min.js"></script>
    <script src="/Public/admin/plugins/flot/plugins/jquery.flot.tooltip.min.js"></script>
    <script src="/Public/admin/plugins/flot/plugins/jquery.flot.pie.min.js"></script>
    <script src="/Public/admin/plugins/flot/plugins/jquery.flot.stack.min.js"></script>
    <script src="/Public/admin/plugins/flot/plugins/jquery.flot.resize.min.js"></script>
    <script src="/Public/admin/plugins/colorpicker/colorpicker-min.js"></script>
    <script src="/Public/admin/plugins/validate/jquery.validate-min.js"></script>
    <script src="/Public/admin/custom-plugins/wizard/wizard.min.js"></script>

    <!-- Core Script -->
    <script src="/Public/admin/bootstrap/js/bootstrap.min.js"></script>
    <script src="/Public/admin/js/core/mws.js"></script>

    <!-- Themer Script (Remove if not needed) -->
    <script src="/Public/admin/js/core/themer.js"></script>

    <!-- Demo Scripts (remove if not needed) -->
    <script src="/Public/admin/js/demo/demo.dashboard.js"></script>
    

</body>
</html>